home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 51329 / 51329.xpi / chrome / firefound.jar / content / threat.xul < prev   
Extensible Markup Language  |  2009-12-14  |  2KB  |  69 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://global/content/commonDialog.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://global/skin/commonDialog.css" type="text/css"?>
  5. <!DOCTYPE dialog SYSTEM "chrome://firefound/locale/strings.dtd">
  6. <dialog id="commonDialog" 
  7.     title="&threatDialog.title;"
  8.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     buttons="cancel,accept"
  10.     onload="sizeToContent(); threat.load();"
  11.     ondialogaccept="return threat.accept();"
  12.     ondialogcancel="return threat.cancel();"
  13.     buttonpack="center"
  14.     style="min-width: 29em; min-height: 8.5em; -moz-user-focus: ignore;">
  15.     <script type="application/javascript" src="chrome://global/content/commonDialog.js"/>
  16.     <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  17.     <script type="application/x-javascript">
  18.         <![CDATA[
  19.         
  20.         var threat = {
  21.             load : function () {
  22.                 // Shut in 30 seconds.
  23.                 setTimeout(function () { document.getElementById('commonDialog').acceptDialog(); }, 30 * 1000);
  24.             },
  25.             
  26.             cancel : function () {
  27.                 var re = window.arguments[0];
  28.                 re[0] = false;
  29.             },
  30.             
  31.             accept : function () {
  32.                 var re = window.arguments[0];
  33.                 re[0] = document.getElementById("loginTextbox").value;
  34.                 re[1] = document.getElementById("password1Textbox").value;
  35.                 
  36.                 return true;
  37.             }
  38.         };
  39.         
  40.         ]]>
  41.     </script>
  42.     <grid>
  43.         <columns>
  44.             <column/>
  45.             <column flex="1"/>
  46.         </columns>
  47.  
  48.         <rows>
  49.             <row>
  50.                 <hbox align="start">
  51.                     <image id="info.icon" class="spaced authentication-icon question-icon"/>
  52.                 </hbox>
  53.                 <vbox id="infoContainer">
  54.                     <description id="info.title" class="dialogTitle">&threatDialog.title;</description>
  55.                     <description id="info.header" class="header">&threatDialog.description;</description>
  56.                 </vbox>
  57.             </row>
  58.  
  59.             <row id="loginContainer" align="center">
  60.                 <label id="loginLabel" value="&threatDialog.username.label;" control="loginTextbox"/>
  61.                 <textbox id="loginTextbox"/>
  62.             </row>
  63.             <row id ="password1Container" align="center">
  64.                 <label id="password1Label" value="&threatDialog.password.label;" control="password1Textbox"/>
  65.                 <textbox type="password" id="password1Textbox"/>
  66.             </row>
  67.         </rows>
  68.     </grid>
  69. </dialog>